<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
    <script>
    var a=80;
    var b=5/9*(a-32);

    var c=parseInt(b*1000)/1000;
    var d='当华氏度为' + a + '度时，' + '摄氏度为' + c + '度';
    console.log(d);
    </script>
</body>
</html>